package com.sgb.member.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 集采首页列表
 */
public class MemberCentralizedEntity implements Serializable {
    /* "createCompany":"李小磊江苏冠军科技集团股份有限公司",
             "unitName":"吨",
             "goodsHeadImg":"",
             "thirdType":"15",
             "groupBuyMode":0,
             "participantNum":2,
             "offerNum":0,
             "goodsName":"",
             "lastOffer":0,
             "status":1,
             "goodsModel":"",
             "attrList"*/

    @SerializedName("createCompany")
    private String createCompany;
    @SerializedName("unitName")
    private String unitName;
    @SerializedName("goodsHeadImg")
    private String goodsHeadImg;
    @SerializedName(value = "groupBuyMode", alternate = {"groupbuyMode"})
    private String groupBuyMode;

    @SerializedName("participantNum")
    private String participantNum;

    @SerializedName("offerNum")
    private String offerNum;

    @SerializedName("offerType")
    private String offerType;

    @SerializedName("joinType")
    private String joinType;

    @SerializedName("goodsName")
    private String goodsName;

    @SerializedName("lastOffer")
    private String lastOffer;

    @SerializedName("status")
    private int status;

    @SerializedName("goodsModel")
    private String goodsModel;

    @SerializedName("goodsSpec")
    private String goodsSpec;

    @SerializedName("secondType")
    private String secondType;

    @SerializedName("firstType")
    private String firstType;

    @SerializedName("secondTypeName")
    private String secondTypeName;

    @SerializedName("id")
    private String id;

    @SerializedName("no")
    private String no;

    @SerializedName("thirdTypeName")
    private String thirdTypeName;

    @SerializedName("firstTypeName")
    private String firstTypeName;

    @SerializedName("isDeadline")
    private String isDeadline;

    @SerializedName("unit")
    private String unit;

    @SerializedName("deadline")
    private String deadline;

    @SerializedName("address")
    private String address;

    @SerializedName("groupBuyType")
    private String groupBuyType;

    //    2020-7-30 新增需求字段（预览产品数组）
    @SerializedName("groupBuyDetailVOList")
    private ArrayList<GoodsEntity> goodsEntity;

    @SerializedName("companyNo")
    private String companyNo;

    @SerializedName("supplierId")
    private String supplierId;

    @SerializedName("groupbuyClass")
    private int groupBuyClass;

    /**
     * 价格预警 1 大于 2 等于 3 小于
     */
    private int priceWarning;

    public int getPriceWarning() {
        return priceWarning;
    }

    public void setPriceWarning(int priceWarning) {
        this.priceWarning = priceWarning;
    }

    public int getGroupBuyClass() {
        return groupBuyClass;
    }

    public void setGroupBuyClass(int groupBuyClass) {
        this.groupBuyClass = groupBuyClass;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public ArrayList<GoodsEntity> getGoodsEntity() {
        return goodsEntity;
    }

    public void setGoodsEntity(ArrayList<GoodsEntity> goodsEntity) {
        this.goodsEntity = goodsEntity;
    }

    public int getGroupBuyType() {
        return Integer.valueOf(groupBuyType);
    }

    public void setGroupBuyType(String groupBuyType) {
        this.groupBuyType = groupBuyType;
    }

    public String getCreateCompany() {
        return createCompany;
    }

    public void setCreateCompany(String createCompany) {
        this.createCompany = createCompany;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getGoodsHeadImg() {
        return goodsHeadImg;
    }

    public void setGoodsHeadImg(String goodsHeadImg) {
        this.goodsHeadImg = goodsHeadImg;
    }

    public String getGroupBuyMode() {
        return groupBuyMode;
    }

    public void setGroupBuyMode(String groupBuyMode) {
        this.groupBuyMode = groupBuyMode;
    }

    public String getParticipantNum() {
        return participantNum;
    }

    public void setParticipantNum(String participantNum) {
        this.participantNum = participantNum;
    }

    public String getOfferNum() {
        return offerNum;
    }

    public void setOfferNum(String offerNum) {
        this.offerNum = offerNum;
    }

    public String getOfferType() {
        return offerType;
    }

    public void setOfferType(String offerType) {
        this.offerType = offerType;
    }

    public String getJoinType() {
        return joinType;
    }

    public void setJoinType(String joinType) {
        this.joinType = joinType;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getLastOffer() {
        return lastOffer;
    }

    public void setLastOffer(String lastOffer) {
        this.lastOffer = lastOffer;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getGoodsModel() {
        return goodsModel;
    }

    public void setGoodsModel(String goodsModel) {
        this.goodsModel = goodsModel;
    }

    public String getGoodsSpec() {
        return goodsSpec;
    }

    public void setGoodsSpec(String goodsSpec) {
        this.goodsSpec = goodsSpec;
    }

    public String getSecondType() {
        return secondType;
    }

    public void setSecondType(String secondType) {
        this.secondType = secondType;
    }

    public String getFirstType() {
        return firstType;
    }

    public void setFirstType(String firstType) {
        this.firstType = firstType;
    }

    public String getSecondTypeName() {
        return secondTypeName;
    }

    public void setSecondTypeName(String secondTypeName) {
        this.secondTypeName = secondTypeName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getThirdTypeName() {
        return thirdTypeName;
    }

    public void setThirdTypeName(String thirdTypeName) {
        this.thirdTypeName = thirdTypeName;
    }

    public String getFirstTypeName() {
        return firstTypeName;
    }

    public void setFirstTypeName(String firstTypeName) {
        this.firstTypeName = firstTypeName;
    }

    public String getIsDeadline() {
        return isDeadline;
    }

    public void setIsDeadline(String isDeadline) {
        this.isDeadline = isDeadline;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public static class GoodsEntity {
        //        规格、型号、单位、加盟量、最低价
        @SerializedName("goodsSpec")
        private String size;
        @SerializedName("goodsModel")
        private String model;
        @SerializedName("unitName")
        private String unit;
        @SerializedName("joinNum")
        private String num;
        @SerializedName("lowPrice")
        private String minPrice;

        //规格参数型号
        private String attr;
        private List<MemberAttrBean> attrlist;

        public String getAttr() {
            return attr;
        }

        public void setAttr(String attr) {
            this.attr = attr;
        }

        public List<MemberAttrBean> getAttrlist() {
            return attrlist;
        }

        public void setAttrlist(List<MemberAttrBean> attrlist) {
            this.attrlist = attrlist;
        }

        public String getSize() {
            return size;
        }

        public void setSize(String size) {
            this.size = size;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        public String getMinPrice() {
            return minPrice;
        }

        public void setMinPrice(String minPrice) {
            this.minPrice = minPrice;
        }
    }

}
